package com.dobby.spring.data.jpa.repository;

import com.dobby.spring.data.jpa.domain.Account;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Account 管理仓库
 * Created by jonas on 2017/9/5.
 */
public interface AccountRepository extends JpaRepository<Account, Long> {


    /**
     * 根据 customer 查询所有的 account
     * @param customerCode
     * @return
     */
    List<Account> findByCustomerCode(String customerCode);


}
